[INFO] cloning repository https://github.com/jjgumucio/rust-http-server
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jjgumucio/rust-http-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjjgumucio%2Frust-http-server", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjjgumucio%2Frust-http-server'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 7c04c5304f6fbffac078d2377bcf057dc4af858a
[INFO] checking jjgumucio/rust-http-server against master#af3c6e733a40e671550e0f0f5aeecaa13772ba56 for pr-74989
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjjgumucio%2Frust-http-server" "/workspace/builds/worker-13/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/jjgumucio/rust-http-server on toolchain af3c6e733a40e671550e0f0f5aeecaa13772ba56
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/jjgumucio/rust-http-server
[INFO] finished tweaking git repo https://github.com/jjgumucio/rust-http-server
[INFO] tweaked toml for git repo https://github.com/jjgumucio/rust-http-server written to /workspace/builds/worker-13/source/Cargo.toml
[INFO] crate git repo https://github.com/jjgumucio/rust-http-server already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 3218318f220fd9b90c9b6184d31ba1fd43b17de0d185dc0e14a730db4d55a461
[INFO] running `Command { std: "docker" "start" "-a" "3218318f220fd9b90c9b6184d31ba1fd43b17de0d185dc0e14a730db4d55a461", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3218318f220fd9b90c9b6184d31ba1fd43b17de0d185dc0e14a730db4d55a461", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3218318f220fd9b90c9b6184d31ba1fd43b17de0d185dc0e14a730db4d55a461", kill_on_drop: false }`
[INFO] [stdout] 3218318f220fd9b90c9b6184d31ba1fd43b17de0d185dc0e14a730db4d55a461
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 215568e4dc4f4b7a60aa193a719504487015d0facb94df0f5a4aa0900af0ed68
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "215568e4dc4f4b7a60aa193a719504487015d0facb94df0f5a4aa0900af0ed68", kill_on_drop: false }`
[INFO] [stderr]     Checking http-server v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0425]: cannot find value `stream` in this scope
[INFO] [stdout]   --> src/main.rs:25:11
[INFO] [stdout]    |
[INFO] [stdout] 25 |     match stream.read(&mut buf) {
[INFO] [stdout]    |           ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `buf` in this scope
[INFO] [stdout]   --> src/main.rs:25:28
[INFO] [stdout]    |
[INFO] [stdout] 25 |     match stream.read(&mut buf) {
[INFO] [stdout]    |                            ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `buf` in this scope
[INFO] [stdout]   --> src/main.rs:27:52
[INFO] [stdout]    |
[INFO] [stdout] 27 |             let req_str = String::from_utf8_lossy(&buf);
[INFO] [stdout]    |                                                    ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Write`
[INFO] [stdout]  --> src/main.rs:2:21
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io::{Read, Write};
[INFO] [stdout]   |                     ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `stream` in this scope
[INFO] [stdout]   --> src/main.rs:25:11
[INFO] [stdout]    |
[INFO] [stdout] 25 |     match stream.read(&mut buf) {
[INFO] [stdout]    |           ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `buf` in this scope
[INFO] [stdout]   --> src/main.rs:25:28
[INFO] [stdout]    |
[INFO] [stdout] 25 |     match stream.read(&mut buf) {
[INFO] [stdout]    |                            ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `buf` in this scope
[INFO] [stdout]   --> src/main.rs:27:52
[INFO] [stdout]    |
[INFO] [stdout] 27 |             let req_str = String::from_utf8_lossy(&buf);
[INFO] [stdout]    |                                                    ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Write`
[INFO] [stdout]  --> src/main.rs:2:21
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io::{Read, Write};
[INFO] [stdout]   |                     ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:28:13
[INFO] [stdout]    |
[INFO] [stdout] 24 | fn build_response(request: HttpRequest) -> HttpResponse {
[INFO] [stdout]    |                                            ------------ expected `HttpResponse` because of return type
[INFO] [stdout] ...
[INFO] [stdout] 28 |             Some(HttpRequest::new(req_str.into_owned()))
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `HttpResponse`, found enum `Option`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `HttpResponse`
[INFO] [stdout]                 found enum `Option<HttpRequest>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:32:13
[INFO] [stdout]    |
[INFO] [stdout] 24 | fn build_response(request: HttpRequest) -> HttpResponse {
[INFO] [stdout]    |                                            ------------ expected `HttpResponse` because of return type
[INFO] [stdout] ...
[INFO] [stdout] 32 |             None
[INFO] [stdout]    |             ^^^^ expected struct `HttpResponse`, found enum `Option`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `HttpResponse`
[INFO] [stdout]                 found enum `Option<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:48:18
[INFO] [stdout]    |
[INFO] [stdout] 48 |             Some(response)
[INFO] [stdout]    |                  ^^^^^^^^ expected struct `HttpResponse`, found struct `String`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:50:25
[INFO] [stdout]    |
[INFO] [stdout] 50 |         Method::POST => println!("Handle this POST request"),
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Option`, found `()`
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Option<HttpResponse>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout]    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:51:24
[INFO] [stdout]    |
[INFO] [stdout] 51 |         Method::PUT => println!("Handle this PUT request"),
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Option`, found `()`
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Option<HttpResponse>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout]    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:52:27
[INFO] [stdout]    |
[INFO] [stdout] 52 |         Method::DELETE => println!("Handle this DELETE request"),
[INFO] [stdout]    |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Option`, found `()`
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Option<HttpResponse>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout]    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `expect` found for struct `HttpResponse` in the current scope
[INFO] [stdout]   --> src/main.rs:63:54
[INFO] [stdout]    |
[INFO] [stdout] 63 |     let http_response = build_response(http_request).expect("Failed to build HttpResponse");
[INFO] [stdout]    |                                                      ^^^^^^ method not found in `HttpResponse`
[INFO] [stdout]    | 
[INFO] [stdout]   ::: src/http_response.rs:8:1
[INFO] [stdout]    |
[INFO] [stdout] 8  | pub struct HttpResponse {
[INFO] [stdout]    | ----------------------- method `expect` not found for this
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 10 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `http-server`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:28:13
[INFO] [stdout]    |
[INFO] [stdout] 24 | fn build_response(request: HttpRequest) -> HttpResponse {
[INFO] [stdout]    |                                            ------------ expected `HttpResponse` because of return type
[INFO] [stdout] ...
[INFO] [stdout] 28 |             Some(HttpRequest::new(req_str.into_owned()))
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `HttpResponse`, found enum `Option`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `HttpResponse`
[INFO] [stdout]                 found enum `Option<HttpRequest>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:32:13
[INFO] [stdout]    |
[INFO] [stdout] 24 | fn build_response(request: HttpRequest) -> HttpResponse {
[INFO] [stdout]    |                                            ------------ expected `HttpResponse` because of return type
[INFO] [stdout] ...
[INFO] [stdout] 32 |             None
[INFO] [stdout]    |             ^^^^ expected struct `HttpResponse`, found enum `Option`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `HttpResponse`
[INFO] [stdout]                 found enum `Option<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:48:18
[INFO] [stdout]    |
[INFO] [stdout] 48 |             Some(response)
[INFO] [stdout]    |                  ^^^^^^^^ expected struct `HttpResponse`, found struct `String`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:50:25
[INFO] [stdout]    |
[INFO] [stdout] 50 |         Method::POST => println!("Handle this POST request"),
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Option`, found `()`
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Option<HttpResponse>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout]    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:51:24
[INFO] [stdout]    |
[INFO] [stdout] 51 |         Method::PUT => println!("Handle this PUT request"),
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Option`, found `()`
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Option<HttpResponse>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout]    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:52:27
[INFO] [stdout]    |
[INFO] [stdout] 52 |         Method::DELETE => println!("Handle this DELETE request"),
[INFO] [stdout]    |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Option`, found `()`
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Option<HttpResponse>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout]    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `expect` found for struct `HttpResponse` in the current scope
[INFO] [stdout]   --> src/main.rs:63:54
[INFO] [stdout]    |
[INFO] [stdout] 63 |     let http_response = build_response(http_request).expect("Failed to build HttpResponse");
[INFO] [stdout]    |                                                      ^^^^^^ method not found in `HttpResponse`
[INFO] [stdout]    | 
[INFO] [stdout]   ::: src/http_response.rs:8:1
[INFO] [stdout]    |
[INFO] [stdout] 8  | pub struct HttpResponse {
[INFO] [stdout]    | ----------------------- method `expect` not found for this
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 10 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: build failed
[INFO] running `Command { std: "docker" "inspect" "215568e4dc4f4b7a60aa193a719504487015d0facb94df0f5a4aa0900af0ed68", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "215568e4dc4f4b7a60aa193a719504487015d0facb94df0f5a4aa0900af0ed68", kill_on_drop: false }`
[INFO] [stdout] 215568e4dc4f4b7a60aa193a719504487015d0facb94df0f5a4aa0900af0ed68
